package cn.spring.ly.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ly
 * @since 2019-01-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysPressm extends Model<SysPressm> {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private Integer parentId;

    /**
     * 权限名称
     */
    private String pressmName;

    /**
     * 对应操作url
     */
    private String url;

    /**
     * 对应操作唯一编码
     */
    private String code;

    @TableField(exist = false)
    private Long userId;

    public static final String ID = "id";

    public static final String PARENT_ID = "parent_id";

    public static final String PRESSM_NAME = "pressm_name";

    public static final String URL = "url";

    public static final String CODE = "code";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
